#include "proxy_exports.h"
#include "proxy_functionimport.h"

// Clientside events

extern void InitTrapCalls(void);

__declspec(dllexport) void __cdecl onCGInit(void)
{
	int i = 0; //Filler data to make the function exist in code -- weird VS optimizations et al
	AlterInterface();
	return;
}

__declspec(dllexport) void __cdecl onCGShutdown (void)
{
	int i = 0; //Filler data to make the function exist in code -- weird VS optimizations et al
	return;
}

__declspec(dllexport) void __cdecl onCGDrawActiveFrame (int serverTime, DWORD *stereoView)
{
	int i = 0; //Filler data to make the function exist in code -- weird VS optimizations et al
	return;
}

__declspec(dllexport) qboolean __cdecl onCGConsoleCommand ( void )
{
	//Raven: DEY TOOK ARE JOBS
	int i = 0;
	char buffer[1024];
	
	CG_Argv2(0, buffer);
	if(!Q_stricmp(buffer, "proxyVersion"))
	{
		//Print the test version to the screen
		trap_Printf("^5HEY JADEN, WHERED YOU GET THAT ^3PROXYMOD v%1.3f\n", 0.2f);
		return qtrue;
	}
	return qfalse; //This function MUST return false ~eezstreet
}

__declspec(dllexport) void __cdecl OnGamesideInit( void )
{
	AlterWeaponDamages();
}